package com.jsh.erp.datasource.mappers;

import com.jsh.erp.datasource.vo.StatementAccountVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StatementAccountEx {

    List<StatementAccountVo> selectByConditionStatementAccount(
            @Param("statementType") String statementType,
            @Param("supplierNumber") String supplierNumber,
            @Param("supplierName") String supplierName,
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime,
            @Param("offset") Integer offset,
            @Param("rows") Integer rows);

    Long countsByStatementAccount(
            @Param("statementType") String statementType,
            @Param("supplierNumber") String supplierNumber,
            @Param("supplierName") String supplierName,
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime
    );

    List<StatementAccountVo> findByAll(
            @Param("statementType") String statementType,
            @Param("supplierNumber") String supplierNumber,
            @Param("supplierName") String supplierName,
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime);

    int batchDeleteStatementAccountByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String[] ids);

}
